<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>admin_query</title>
		<link rel="shortcut icon" href="../images/my/favicon.ico" />
		<link rel="bookmark" href="../images/my/favicon.ico" />
		<link rel="stylesheet" href="../css/layui.css" />
		<link rel="stylesheet" href="../css/admin/common.css" />
	</head>

	<body>
		<div class="layui-row">
			<div class="layui-col-md12">
				<table class="layui-table" lay-skin="line">
					<tbody>
						<tr>
							<td>选手编号：</td>
							<td name="pno"></td>
							<td>姓名：</td>
							<td name="name"></td>
						</tr>
						<tr>
							<td>创建时间：</td>
							<td name="createtime"></td>
							<td>最近修改时间：</td>
							<td name="updatetime"></td>
						</tr>
						<tr>
							<td>头像：</td>
							<td colspan="3" name="headimgurl">
								<a href="" target='view_window'>
								<img src="" style="height: 50px;width: 50px;border-radius: 50%;border: none;" />
								</a>
							</td>
						</tr>
						<tr>
							<td>个人简介：</td>
							<td colspan="3" name="description">
								
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<script type="text/javascript" src="../layui.js"></script>
		<script type="text/javascript" src="../lay/system/admin/public.js"></script>
		<script>
			layui.use(['layer', 'form'], function() {
				var layer = layui.layer,
					$ = layui.$;
				var puid = getUrlParam("puid")
				initData(puid);
				//初始化页面数据
				function initData(puid) {
					//用户数据
					$.ajax({
						url: IP + '/api/admin/palyerUser/' + puid,
						type: 'GET',
						success: function(result, status, xhr) {
							layer.closeAll('loading');
							$("td[name='pno']").html(result.data.pno)
							$("td[name='name']").html(result.data.name)
							$("td[name='createtime']").html(result.data.createtime)
							$("td[name='updatetime']").html(result.data.updatetime)
							$("td[name='headimgurl']").children('a').attr('href',result.data.headimgurl)
								.children('img').attr('src',result.data.headimgurl)
							$("td[name='description']").html(result.data.description)
							
						}
					});
				}
			});
		</script>
	</body>

</html>